package interfaceandabstract.exercise;

public class Duck extends Animal implements Swim {
    public Duck() {
    }

    public Duck(String gender, String alias, int age, int speed) {
        super(gender, alias, age, speed);
    }

    @Override
    public void swim() {
        System.out.println("我是天生的游泳健将...");
    }

    @Override
    public void bark() {
        System.out.println("嘎嘎...");

    }
}
